<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Embroidermodder: extern/libembroidery/src/formats/format_hus.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js", "TeX/AMSmath.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="logo_embroidermodder_2_0.png"/></td>
  <td id="projectalign">
   <div id="projectname">Embroidermodder<span id="projectnumber">&#160;2.0.0-alpha4</span>
   </div>
   <div id="projectbrief">A free and open source software for machine embroidery</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('format__hus_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">format_hus.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &quot;<a class="el" href="embroidery__internal_8h_source.html">../embroidery_internal.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7ec967d53a40e6d8e160b289edcf1e60"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#a7ec967d53a40e6d8e160b289edcf1e60">husDecodeStitchType</a> (unsigned char b)</td></tr>
<tr class="separator:a7ec967d53a40e6d8e160b289edcf1e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb698d8b966efc749dc448453f7ac074"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#acb698d8b966efc749dc448453f7ac074">husDecompressData</a> (unsigned char *input, int compressedInputLength, int decompressedContentLength)</td></tr>
<tr class="separator:acb698d8b966efc749dc448453f7ac074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57846ef4f4df5008f4f89e42cc4356e8"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#a57846ef4f4df5008f4f89e42cc4356e8">husCompressData</a> (unsigned char *input, int decompressedInputSize, int *compressedSize)</td></tr>
<tr class="separator:a57846ef4f4df5008f4f89e42cc4356e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae44da0506699f96fd891292f7e275a73"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#ae44da0506699f96fd891292f7e275a73">husDecodeByte</a> (unsigned char b)</td></tr>
<tr class="separator:ae44da0506699f96fd891292f7e275a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92976733ccfe804f5d9705e184cf7cc2"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#a92976733ccfe804f5d9705e184cf7cc2">husEncodeByte</a> (<a class="el" href="embroidery_8h.html#a2082be9aabfb541dff1825c4ca6a05cd">EmbReal</a> f)</td></tr>
<tr class="separator:a92976733ccfe804f5d9705e184cf7cc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb31a4deeebbe075c4cbeecbf2190bfe"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#afb31a4deeebbe075c4cbeecbf2190bfe">husEncodeStitchType</a> (int st)</td></tr>
<tr class="separator:afb31a4deeebbe075c4cbeecbf2190bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32dc0f3a80d04bf5da7e43ab8a0a2e9a"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#a32dc0f3a80d04bf5da7e43ab8a0a2e9a">readHus</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, FILE *file)</td></tr>
<tr class="separator:a32dc0f3a80d04bf5da7e43ab8a0a2e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf00410a4837aac34d67149c659a33f8"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__hus_8c.html#aaf00410a4837aac34d67149c659a33f8">writeHus</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, FILE *file)</td></tr>
<tr class="separator:aaf00410a4837aac34d67149c659a33f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a57846ef4f4df5008f4f89e42cc4356e8" name="a57846ef4f4df5008f4f89e42cc4356e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57846ef4f4df5008f4f89e42cc4356e8">&#9670;&nbsp;</a></span>husCompressData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char * husCompressData </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>decompressedInputSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>compressedSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae44da0506699f96fd891292f7e275a73" name="ae44da0506699f96fd891292f7e275a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae44da0506699f96fd891292f7e275a73">&#9670;&nbsp;</a></span>husDecodeByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int husDecodeByte </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7ec967d53a40e6d8e160b289edcf1e60" name="a7ec967d53a40e6d8e160b289edcf1e60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ec967d53a40e6d8e160b289edcf1e60">&#9670;&nbsp;</a></span>husDecodeStitchType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int husDecodeStitchType </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<h2><a class="anchor" id="husqvarna-hus-format"></a>
Husqvarna Viking Embroidery Format (.hus)</h2>
<p ><a id="a7ec967d53a40e6d8e160b289edcf1e60_a99_hus" name="a7ec967d53a40e6d8e160b289edcf1e60_a99_hus"></a> <a id="a7ec967d53a40e6d8e160b289edcf1e60_a100_Husqvarna:20Viking" name="a7ec967d53a40e6d8e160b289edcf1e60_a100_Husqvarna:20Viking"></a></p>
<p >Stitch Only Format. </p>

</div>
</div>
<a id="acb698d8b966efc749dc448453f7ac074" name="acb698d8b966efc749dc448453f7ac074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb698d8b966efc749dc448453f7ac074">&#9670;&nbsp;</a></span>husDecompressData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char * husDecompressData </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>compressedInputLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>decompressedContentLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a92976733ccfe804f5d9705e184cf7cc2" name="a92976733ccfe804f5d9705e184cf7cc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92976733ccfe804f5d9705e184cf7cc2">&#9670;&nbsp;</a></span>husEncodeByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char husEncodeByte </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a2082be9aabfb541dff1825c4ca6a05cd">EmbReal</a>&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="afb31a4deeebbe075c4cbeecbf2190bfe" name="afb31a4deeebbe075c4cbeecbf2190bfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb31a4deeebbe075c4cbeecbf2190bfe">&#9670;&nbsp;</a></span>husEncodeStitchType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char husEncodeStitchType </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>st</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a32dc0f3a80d04bf5da7e43ab8a0a2e9a" name="a32dc0f3a80d04bf5da7e43ab8a0a2e9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32dc0f3a80d04bf5da7e43ab8a0a2e9a">&#9670;&nbsp;</a></span>readHus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char readHus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aaf00410a4837aac34d67149c659a33f8" name="aaf00410a4837aac34d67149c659a33f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf00410a4837aac34d67149c659a33f8">&#9670;&nbsp;</a></span>writeHus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char writeHus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_dc9e1e299a0b26f222fe6c0a872463f0.html">extern</a></li><li class="navelem"><a class="el" href="dir_6a8aa8af2875e58e82a0145491f7a8e2.html">libembroidery</a></li><li class="navelem"><a class="el" href="dir_50a7dc5dba8160ac8332d90912e622db.html">src</a></li><li class="navelem"><a class="el" href="dir_7d0e9abc6dadcd976ab885d9ba0d632b.html">formats</a></li><li class="navelem"><a class="el" href="format__hus_8c.html">format_hus.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
